@echo off
:projDir
set /p projdir=Enter project directory:
if "%projdir%" == "" (
	@echo Please enter project directory name!
	goto projDir
)
:outDir
set /p outdir=Enter output directory:
if "%outdir%" == "" (
	@echo Please enter output directory name!
	goto outDir
)

set islip="%projdir%\islip\Release\islip.exe"
set tr_gen="%projdir%\tr_gen\Release\tr_gen.exe"
set inscript="%outdir%\in_script_"
set outscript="%outdir%\out_script_"
set seed=269
set T=1000
set runs=27
set r=1
set flag=

:loop
echo Run no. %r%
goto Run%r%
:cont
%tr_gen% %N% %T% %seed% %p% %flag% > %inscript%%r%.txt
%islip% %N% %k% %r% < %inscript%%r%.txt > %outscript%%r%.txt
set /a "r+=1"
if %r% LSS %runs% goto loop
echo done
goto exit

:Run1
set p=0.6
set N=16
set k=1
goto cont

:Run2
set p=0.7
set N=16
set k=1
goto cont

:Run3
set p=0.75
set N=16
set k=1
goto cont

:Run4
set p=0.8
set N=16
set k=1
goto cont

:Run5
set p=0.85
set N=16
set k=1
goto cont

:Run6
set p=0.9
set N=16
set k=1
goto cont

:Run7
set p=0.95
set N=16
set k=1
goto cont

:Run8
set p=0.99
set N=16
set k=1
goto cont

:Run9
set p=0.85
set N=8
set k=1
goto cont

:Run10
set p=0.9
set N=8
set k=1
goto cont

:Run11
set p=0.95
set N=8
set k=1
goto cont

:Run12
set p=0.85
set N=32
set k=1
goto cont

:Run13
set p=0.9
set N=32
set k=1
goto cont

:Run14
set p=0.95
set N=32
set k=1
goto cont

:Run15
set p=0.85
set N=16
set k=2
goto cont

:Run16
set p=0.9
set N=16
set k=2
goto cont

:Run17
set p=0.95
set N=16
set k=2
goto cont

:Run18
set p=0.85
set N=16
set k=3
goto cont

:Run19
set p=0.9
set N=16
set k=3
goto cont

:Run20
set p=0.95
set N=16
set k=3
goto cont

:Run21
set flag=-d
set p=0.6
set N=16
set k=1
goto cont

:Run22
set flag=-d
set p=0.7
set N=16
set k=1
goto cont

:Run23
set flag=-d
set p=0.75
set N=16
set k=1
goto cont

:Run24
set flag=-d
set p=0.8
set N=16
set k=1
goto cont

:Run25
set flag=-d
set p=0.85
set N=16
set k=1
goto cont

:Run26
set flag=-d
set p=0.9
set N=16
set k=1
goto cont

:exit
exit /B